package com.nd.pojo.bo;

import java.util.List;

/**
 * @program: project2mall
 * @description: 角色BO类
 * @author: shit_code_builder
 * @create: 2021-06-05 19:45
 **/
public class Player {

    /**
     * id : 其他
     * label : 其他
     * children : [{"id":"权限测试","label":"权限测试","children":[{"id":"index:permission:write","label":"权限写","api":"POST /admin/index/write"},{"id":"index:permission:read","label":"权限读","api":"GET /admin/index/read"}]}]
     */

    private String id;
    private String label;
    private List<ChildrenBeanX> children;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<ChildrenBeanX> getChildren() {
        return children;
    }

    public void setChildren(List<ChildrenBeanX> children) {
        this.children = children;
    }

    public static class ChildrenBeanX {
        /**
         * id : 权限测试
         * label : 权限测试
         * children : [{"id":"index:permission:write","label":"权限写","api":"POST /admin/index/write"},{"id":"index:permission:read","label":"权限读","api":"GET /admin/index/read"}]
         */

        private String id;
        private String label;
        private List<ChildrenBean> children;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getLabel() {
            return label;
        }

        public void setLabel(String label) {
            this.label = label;
        }

        public List<ChildrenBean> getChildren() {
            return children;
        }

        public void setChildren(List<ChildrenBean> children) {
            this.children = children;
        }

        public static class ChildrenBean {
            /**
             * id : index:permission:write
             * label : 权限写
             * api : POST /admin/index/write
             */

            private String id;
            private String label;
            private String api;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getLabel() {
                return label;
            }

            public void setLabel(String label) {
                this.label = label;
            }

            public String getApi() {
                return api;
            }

            public void setApi(String api) {
                this.api = api;
            }
        }
    }
}
